<?php 
class JobNewController extends AppController{
	var $name = "JobNew";
	var $uses = array('Job','SysParams');
	
	function index(){
		$area_info = $this->SysParams->getArea();
		$tema_info = $this->SysParams->getTema();
		$this->set('area_info', $area_info);
		$this->set('tema_info', $tema_info);
		//$limit = 35;
		$public_info = $this->Job->getPublicJob($this->show,$this->page);
		$count = $this->Job->getPublicJobCount();
		$pagestr=$this->initPageCount($count,'件','件','中',$this->show);
		$this->set('pagestr',$pagestr);
		if($this->page>1){
			$this->set("pagenum","1");
		}
		$this->set('public_info', $public_info);
		$this->set('count', $count);
		$this->setPaging('ajax','/jobNew',$count,$this->show,null,$this->show);
	}
}
?>